# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xfce4-diskperf-plugin
pkgver=2.7.0
pkgrel=0
pkgdesc="Displays disk I/O performance"
url="https://docs.xfce.org/panel-plugins/xfce4-diskperf-plugin/start"
arch="all"
license="BSD-2-Clause"
makedepends="
	gtk+3.0-dev
	libxfce4ui-dev
	xfce4-dev-tools
	xfce4-panel-dev
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://gitlab.xfce.org/panel-plugins/xfce4-diskperf-plugin/-/archive/xfce4-diskperf-plugin-$pkgver/xfce4-diskperf-plugin-xfce4-diskperf-plugin-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6a1df3f53728c4a4a95cf36c7218653a4fb6ff15fa337e64d7918528be632193ef31ef1d2f5e1da8593868230e4ece29672ceea0720ecae8bf0da3294e1d4ad2  xfce4-diskperf-plugin-2.7.0.tar.gz
"
